package com.t2t.top;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

/**
 * Created by yangpengfei on 2016/8/22.
 */
public class PropertiesLoaderUtilsTest {
    public static void main(String[] args) throws IOException {
        ClassLoader classLoaderToUse = new PropertiesLoaderUtilsTest().getClass().getClassLoader();

        String resourceName = "MY-META-INF/spring.handlers";

        Enumeration<URL> urls = classLoaderToUse.getResources(resourceName);
        while (urls.hasMoreElements()) {
            URL url = urls.nextElement();
            System.out.println(url);
        }
    }

}
